# dog 继承 animal
# 定义一个Animal类
class Animal:
    def __init__(self, name, age, color):
        self.name = name
        self.age = age
        self.color = color
    def call(self):
        return '叫'
    def run(self):
        return '会跑'

#  定义一个Dog类, 继承Animal
class Dog(Animal):
    pass
dog1 = Dog('旺财', 2, '黑白')
print(dog1.name)
print(dog1.age)
print(dog1.color)
print(dog1.call())
print(dog1.run())